import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:grint/constant/colors.dart';
import 'package:grint/widget/my_text.dart';

class NoData extends StatelessWidget {
  const NoData({
    super.key,
    required this.width,
    required this.height,
    this.text = 'No data',
  });

  final double width;
  final double height;
  final String? text;

  @override
  Widget build(BuildContext context) {
    return Column(
      children: [
        SizedBox(height: 20.h),
        Image.asset(
          'assets/images/no-data.png',
          width: width,
          height: height,
          fit: BoxFit.contain,
        ),
        MyText(
          text: text ?? 'No data',
          type: TextType.miSans,
          fontSize: 16.sp,
          color: AppColors.textGrey,
        ),
      ],
    );
  }
}
